package com.xiao.train.common.util;

import cn.hutool.core.util.IdUtil;

public class SnowUtil {
    private static long dataCenterId = 1;
    private static long workId = 1;
    public static long getId() {
        return IdUtil.getSnowflake(dataCenterId, workId).nextId();
    }
    public static String getIdStr() {
        return IdUtil.getSnowflake(dataCenterId, workId).nextIdStr();
    }
}
